<div class="navPages">
  <?php echo link_to('<i>Première page</i>', commentTools::rewriteUrlForPage($route, 1, $crypt), array('class' => 'btn first')); ?>
  <?php echo link_to('<i>Page précédente</i>', commentTools::rewriteUrlForPage($route, $pager->getPreviousPage(), $crypt), array('class' => 'btn previous')); ?>

  <?php foreach ($pager->getLinks() as $page): ?>
    <?php if ($page == $pager->getPage()): ?>
      <span><?php echo $page ?></span>
    <?php else: ?>
      <a href="<?php echo url_for(commentTools::rewriteUrlForPage($route, $page, $crypt)) ?>"><?php echo $page ?></a>
    <?php endif; ?>
  <?php endforeach; ?>

  <?php echo link_to('<i>Page suivante</i>', commentTools::rewriteUrlForPage($route, $pager->getNextPage(), $crypt), array('class' => 'btn next')); ?>
  <?php echo link_to('<i>Dernière page</i>', commentTools::rewriteUrlForPage($route, $pager->getLastPage(), $crypt), array('class' => 'btn last')); ?>
</div>
